<?php 
/**
 * File: View - Categorias - index.phtml
 */
	
?>

			<div id="categorias_edit_action"></div>
			<div class="ui-corner-all" id="categorias_form_edit_container">
				
					<div>
						<!-- OPCOES -->
						<div>
							<div class="portlet">
								<div class="portlet-header">A&ccedil;&otilde;es</div>
								<div class="portlet-content">
									<ul>
										<?php if( $this->categoria['status'] == "1" ){ ?>
											<li><a href="/third/categorias/unlock/id/<?php echo $this->categoria['id'] ?>" class="btn ui-state-default"><span class="ui-icon ui-icon-locked"></span>Bloquear categoria</a></li>
										<?php } else if( $this->categoria['status'] == "0" ) { ?>
											<li><a href="/third/categorias/unlock/id/<?php echo $this->categoria['id'] ?>" class="btn ui-state-default"><span class="ui-icon ui-icon-unlocked"></span>Liberar categoria</a></li>	
										<?php } ?>
										<li><a href="/third/categorias/delete/id/<?php echo $this->categoria['id'] ?>" class="btn ui-state-default"><span class="ui-icon ui-icon-minus"></span>Remover categoria</a></li>
									</ul>
									<div class="clearfix"></div>
								</div>
							</div>	
						</div>
						<!-- END OPCOES -->
					
						<!-- DADOS -->
						<div >
							<div class="portlet">
								<div class="portlet-header">Dados</div>
								<div class="portlet-content">
																			<?php 
												if( $this->formErro ){
													echo "<div class='response-msg error ui-corner-all'>".$this->formErro."</div>"; 
												}
											?>
										<div id="form_login" >
											<?php echo $this->form; ?>
										</div>
									<br />
								</div>
							</div>
						</div>
				</div>
					
				<div class="clearfix"></div>
			</div>